<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="/static/index/index/css/style.css">
    <link href="/static/index/index/css/layui.css" type="text/css" rel="stylesheet" />
    <link href="/static/layui/layui/css/layui.css" type="text/css" rel="stylesheet" />
    <link href="/static/layui/layui/css/layui.mobile.css" type="text/css" rel="stylesheet" />
    <link href="/static/index/index/css/common.css" type="text/css" rel="stylesheet" />
    <link href="/static/index/index/css/index.css" type="text/css" rel="stylesheet" />
    <link href="/static/index/index/css/modules/code.css" type="text/css" rel="stylesheet" />
</head>
<style>
    .layui-upload-list img {
        width: 190px;
        height: 180px;
        margin-left: 5px;
    }

    .layui-input-block {
        min-height: 36px;
        margin-top: 50px;
    }

    .a1 {
        width: 100%;
        height: 50px;
        font-size: 22px;
        padding: 0 0 0 10px;
    }

    .cont_table_cont_name_textarea {
        width: 75%;
        height: 100px;
        line-height: 24px;
        float: left;
        margin-left: 2.5%;
    }
    th{
        padding: 5px 10px;border-width: 1px;border-style: solid; border-color: #e6e6e6;
    }
    td{
        padding: 5px 10px;border-width: 1px;border-style: solid; border-color: #e6e6e6;
    }
</style>
<body>
    <div class="top">
        <div class="top_title">
            滨州市数据汇聚平台
        </div>
        <div class="top_user">
            <div class="top_user_f5">
                <img src="__STATIC__/index/img/f5.png" alt="">
            </div>
            <div class="top_user_userphoto">
                {empty name="admin"}
                {else /}
                <img src="__STATIC__/index/img/uesrphoto.png" alt="">
                {/empty}
            </div>
            <div class="top_user_text">
                {empty name="admin"}
                <a href="{:url('index/login')}">登入</a>
                {else /}
                欢迎，{$admin}
                {/empty}
            </div>
            <div class="top_user_select">
                <select name="" id="">
                </select>
            </div>
            {empty name="admin"}
            {else /}
            <div class="top_user_tuichu">
                <img src="__STATIC__/index/img/tuichu.png" alt="">
            </div>
            <div class="top_user_text">
                <a href="javascript:;" id="logon">退出</a>
            </div>
            {/empty}
        </div>
    </div>
    <div class="cont">
        <div class="banner">
            <div class="banner_text">
                数据汇聚 数据分析 数据挖掘 数据感知
            </div>
        </div>
        <div class="cont_table">
            <div class="cont_table_title">
                <div class="cont_table_title_text">
                    <!--<span>开发区</span>-->
                </div>
                <div class="cont_table_title_btn">
                    <div class="cont_table_title_btn_l">
                        待填报
                    </div>
                    <div class="cont_table_title_btn_l">
                        <a href="{:url('index/list')}">历史填报</a>
                    </div>
                </div>
            </div>
            <form action="" id="admin">
                <div class="cont_table_cont" style="background: #fff;">
                        <div class="table">
                            <table width="100%" border="1" cellspacing="0" cellpadding="0">
                                <tbody>
                                  <tr style="background-color: #f2f2f2;">
                                    <th rowspan="2" scope="col">序号</th>
                                    <th rowspan="2" scope="col">项目名称</th>
                                    <th rowspan="2" scope="col">项目简介</th>
                                    <th rowspan="2" scope="col">责任单位负责人</th>
                                    <th rowspan="2" scope="col">开竣工时间</th>
                                    <th colspan="2" scope="col">工作内容</th>
                                    <th colspan="2" scope="col">进展情况</th>
                                  </tr>
                                  <tr style="background-color: #f2f2f2;">
                                    <td>类别</td>
                                    <td>完成起止时间</td>
                                    <td>总体完成情况</td>
                                    <td>本期完成情况</td>
                                  </tr>
                                  <tr>
                                    <th rowspan="3" scope="row">1</th>
                                    <td rowspan="3"><input type="text" name="title" required  lay-verify="required" placeholder="项目名称" autocomplete="off" class="layui-input"></td>
                                    <td rowspan="3"><textarea name="desc" placeholder="项目简介" class="layui-textarea"></textarea></td>
                                    <td rowspan="3"><input type="text" name="title" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input"></td>
                                    <td rowspan="3"><input type="text" name="title" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input"></td>
                                    <td>村庄拆迁</td>
                                    <td><input type="text" name="title" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input"></td>
                                    <td><input type="text" name="title" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input"></td>
                                    <td><input type="text" name="title" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input"></td>
                                  </tr>
                                  <tr>
                                    <td>手续办理</td>
                                    <td><input type="text" name="title" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input"></td>
                                    <td><input type="text" name="title" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input"></td>
                                    <td><input type="text" name="title" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input"></td>
                                  </tr>
                                  <tr>
                                    <td>项目建设</td>
                                    <td><input type="text" name="title" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input"></td>
                                    <td><input type="text" name="title" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input"></td>
                                    <td><input type="text" name="title" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input"></td>
                                  </tr>
                                  <tr>
                                    <th rowspan="3" scope="row">2</th>
                                    <td rowspan="3"><input type="text" name="title" required  lay-verify="required" placeholder="项目名称" autocomplete="off" class="layui-input"></td>
                                    <td rowspan="3"><textarea name="desc" placeholder="项目简介" class="layui-textarea"></textarea></td>
                                    <td rowspan="3"><input type="text" name="title" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input"></td>
                                    <td rowspan="3"><input type="text" name="title" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input"></td>
                                    <td>村庄拆迁</td>
                                    <td><input type="text" name="title" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input"></td>
                                    <td><input type="text" name="title" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input"></td>
                                    <td><input type="text" name="title" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input"></td>
                                  </tr>
                                  <tr>
                                    <td>手续办理</td>
                                    <td><input type="text" name="title" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input"></td>
                                    <td><input type="text" name="title" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input"></td>
                                    <td><input type="text" name="title" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input"></td>
                                  </tr>
                                  <tr>
                                    <td>项目建设</td>
                                    <td><input type="text" name="title" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input"></td>
                                    <td><input type="text" name="title" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input"></td>
                                    <td><input type="text" name="title" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input"></td>
                                  </tr>
                                  <tr>
                                    <th rowspan="3" scope="row">3</th>
                                    <td rowspan="3"><input type="text" name="title" required  lay-verify="required" placeholder="项目名称" autocomplete="off" class="layui-input"></td>
                                    <td rowspan="3"><textarea name="desc" placeholder="项目简介" class="layui-textarea"></textarea></td>
                                    <td rowspan="3"><input type="text" name="title" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input"></td>
                                    <td rowspan="3"><input type="text" name="title" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input"></td>
                                    <td>村庄拆迁</td>
                                    <td><input type="text" name="title" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input"></td>
                                    <td><input type="text" name="title" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input"></td>
                                    <td><input type="text" name="title" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input"></td>
                                  </tr>
                                  <tr>
                                    <td>手续办理</td>
                                    <td><input type="text" name="title" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input"></td>
                                    <td><input type="text" name="title" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input"></td>
                                    <td><input type="text" name="title" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input"></td>
                                  </tr>
                                  <tr>
                                    <td>项目建设</td>
                                    <td><input type="text" name="title" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input"></td>
                                    <td><input type="text" name="title" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input"></td>
                                    <td><input type="text" name="title" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input"></td>
                                  </tr>
                                </tbody>
                              </table>
                        </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <button class="layui-btn" lay-submit lay-filter="admin">立即提交</button>
                        </div>
                    </div>
                </div>
                <!-- <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
                    <legend>上传多张图片</legend>
                </fieldset>

                <div class="layui-upload">
                    <button type="button" class="layui-btn" id="test2">多图片上传</button>
                    <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">
                        预览图：
                        <div class="layui-upload-list" id="demo2"></div>
                    </blockquote>
                </div> -->
            </form>
            <aside class="mask works-mask">
                <div class="mask-content">
                    <p class="del-p">您确定要删除作品图片吗？</p>
                    <p class="check-p"><span class="del-com wsdel-ok">确定</span><span class="wsdel-no">取消</span></p>
                </div>
            </aside>

        </div>
    </div>
    </div>
</body>
<script src="http://www.jq22.com/jquery/jquery-1.10.2.js"></script>
<script src="/static/layui/layui/layui.js"></script>
<script src="/static/layui/layui/layui.all.js"></script>
<script src="/static/index/index/js/imgUp.js"></script>

<script>
    //多图片上传
    layui.use('upload', function() {

        var $ = layui.jquery,

            upload = layui.upload;

        //拖拽上传

        upload.render({

            elem: '#test2',

            url: "{:url('index/upload')} " //改成您自己的上传接口

                ,

            multiple: true,

            before: function(obj) {

                //预读本地文件示例，不支持ie8

                obj.preview(function(index, file, result) {

                    $('#demo2').append('<img src="' + result + '" alt="' + file.name +

                        '" class="layui-upload-img">')

                });

            },

            done: function(res) {

                $('#demo2').append('<input type="hidden" value="' + res.msg + '" name="imgs[]">')

            }

        });

    });
</script>
<script>
    layui.use(['layer', 'form'], function() {
        var layer = layui.layer,
            $ = layui.jquery,
            form = layui.form;
        $(window).on('load', function() {
            form.on('submit(admin)', function(data) {
                $.ajax({
                    url: "{:url('index/index/listt')}",
                    data: $('#admin').serialize(),
                    type: 'post',
                    async: false,
                    success: function(arr) {
                        if (arr.code == 1) {
                            layer.alert(arr.msg, function(index) {
                                location.href = arr.url;
                            })
                        } else {
                            layer.msg(arr.msg);
                        }
                    }
                })
                return false;
            });
        });
    });
</script>

</html>